#include <iostream>
using namespace std;

void solution1() {
    int a = 1;
    unsigned char* p = (unsigned char*)(&a);
    if (*p) {
        cout << "little-endian" << endl;
    } else {
        cout << "big-endian" << endl;
    }
}

void solution2() {
    union {
        int a;
        char b;
    } c;
    c.a = 1;
    if (c.b) {
        cout << "little-endian" << endl;
    } else {
        cout << "big-endian" << endl;
    }
}

int main() {
    solution1();
    solution2();
    return 0;
}